/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
buildPage();
function buildPage() {
    var width = screen.width;
    if (width > 1366) {
        jQuery('#Header').css('width', '40%');
        jQuery('#Header').css('left', '30%');
        jQuery('#Header').css('right', '30%');

        jQuery('#Content').css('width', '40%');
        jQuery('#Content').css('left', '30%');
        jQuery('#Content').css('right', '30%');
    } else {
        jQuery('#Header').css('width', '50%');
        jQuery('#Header').css('left', '25%');
        jQuery('#Header').css('right', '25%');

        jQuery('#Content').css('width', '50%');
        jQuery('#Content').css('left', '25%');
        jQuery('#Content').css('right', '25%');
    }
    if (width<1024){ //не работает(
        alert(width);
        jQuery('#Header').css('top','35px');
        jQuery('#Content').css('top','117px');
    }
}
$(document).ready(function() {
    $(document).resize(buildPage());
});

